//#ifdef Q_OS_WIN
#include "Timer_win32.hpp"
#ifdef Q_OS_WIN
Timer::Timer() {
    QueryPerformanceFrequency(&frequency);
    QueryPerformanceCounter(&start_time);
    current_time = store = last_time = start_time;
}

void Timer::start() {
     QueryPerformanceCounter(&start_time);
}
float Timer::delta() {
    QueryPerformanceCounter(&current_time);
    store.QuadPart = current_time.QuadPart - last_time.QuadPart;
    last_time = current_time;
    return float(store.QuadPart)/float(frequency.QuadPart);
}

float Timer::absolute() {
    QueryPerformanceCounter(&current_time);
    store.QuadPart = current_time.QuadPart - start_time.QuadPart;
    return float(store.QuadPart)/float(frequency.QuadPart);
}
#endif

